home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / ezfkey.zip / MOVE.BAT < prev    next >
DOS Batch File  |  1991-10-17  |  750b  |  40 lines

  1. @echo off
  2. cls
  3. rem                  c:\dos\move.bat - copies a file from
  4. rem                     one directory to another and then
  5. rem                     erases the file from the original
  6. rem
  7. IF %2. == . GOTO INCOMPLETE
  8. echo.
  9. echo.
  10. echo.
  11. echo                       %1  IS  BEING  COPIED  TO  %2
  12. echo.
  13. echo.
  14. echo.
  15. echo           %1  WILL  BE  DELETED FROM  THE  CURRENT  DIRECTORY
  16. echo.
  17. echo.
  18. echo.
  19. echo.
  20. XCOPY %1 %2
  21. echo.
  22. echo.
  23. echo.
  24. echo.
  25. IF ERRORLEVEL 1 GOTO ERROR
  26. DEL %1
  27. GOTO END
  28. :INCOMPLETE
  29. echo                 YOU MUST SPECIFY THE DESTINATION PATH
  30. echo.
  31. echo                  SUCH AS:   move filename c:\dos
  32. echo.
  33. :ERROR
  34. echo                 SOMETHING'S WRONG,  ABORTING MOVE
  35. :END
  36. echo.
  37. echo.
  38. echo.
  39. echo.
  40.